<html>
<head>
<title>stateMgr</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" src="../../_sharedassets/pages.js"></script>
</head>
<body>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td width="100%" align="left"></td><td><a href="FStEngOneFive_83.html"><img src="../../_sharedassets/previous.gif" alt="Previous"></a><img src="../../_sharedassets/shim.gif" width="10"  height="1"><a href="FStEngOneFive_85.html"><img src="../../_sharedassets/next.gif" alt="Next"></a></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="11" width="1"></td></tr></table>
<h1>stateMgr</h1>
<h4>Description</h4>
<p>The state (network) manager class is used at run-time to manage which state(s) 
  are active and which have been visited last (the history mechanism), in each 
  network (collection of states).</p>
<p>You must create a state manager for each hierarchical state (<font face="Courier New, Courier, mono">hState</font>), 
  and you may create several for concurrent hierarchical states (<font face="Courier New, Courier, mono">hStateC</font>), 
  one to manage each sub-network.</p>
<h4>Usage</h4>
<pre><i>new stateMgr(name, id, defaultState, containerState);</i>
</pre>
<h4>Parameters</h4>
<p><i>name</i> String name of the manager. Used in trace output</p>
<p><i>id</i> Typically alphabetic, this is the ID of the manager (must be unique 
  among other managers in the same <font face="Courier New, Courier, mono">hStateC</font>)</p>
<p><i>defaultState </i>ID of the default start state for this network</p>
<p><i>containerState </i>Pointer to the state that contains this network.</p>
<h4>Example</h4>
<pre><i>// For hState's
s2 = new hState(&quot;Time State&quot;, 0, theTopStateMgr);
timeSM = new stateMgr(&quot;Time Mgr&quot;, &quot;A&quot;, 1, s2); // default start state is ID 1

// For hStateC's
s2 = new hStateC(&quot;Big State&quot;, 0, theTopStateMgr);
// default start state for first sub-network is ID 1
timeSM = new stateMgr(&quot;Time Mgr&quot;, &quot;A&quot;, 1, s2);
// default start state for second sub-network is ID 5 
dateSM = new stateMgr(&quot;Date Mgr&quot;, &quot;B&quot;, 5, s2);</i></pre>
<h4>Code Hint</h4>
<p>Variable names with the suffix &quot;_stMgr&quot; are recognized for the sake 
  of codehinting, as state managers..</p>
<p>&nbsp;</p>
<table class="nav" width="100%" border="0" cellpadding="0" cellspacing="0"><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="6" width="1"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/pixel.gif" height="1" width="100%"></td></tr><tr><td colspan="2"><img src="../../_sharedassets/shim.gif" height="4" width="1"></td></tr><tr><td width="100%" align="left"></td><td><a href="FStEngOneFive_83.html"><img src="../../_sharedassets/previous.gif" alt="Previous"></a><img src="../../_sharedassets/shim.gif" width="10" height="1"><a href="FStEngOneFive_85.html"><img src="../../_sharedassets/next.gif" alt="Next"></a></td></tr></table>
</body>
</html>